package com.example.service;

import com.example.domain.*;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.transaction.annotation.Transactional;

import java.sql.SQLException;
import java.util.List;

/**
 * @author luo
 */

public interface SalaryService {
    /**
     * 查询所有员工信息
     * @return
     */
    public List<Salary> selectSalary();
    /**
     * 查询单个员工薪资
     * @param id
     * @return
     */
    public Salary selectSalaryById(Integer id);

    /**
     * 模糊查询
     * @param name
     * @return
     */
    public List<Salary> selectSalaryByName(String name);

    /**
     * 添加员工薪资信息
     * @param salary
     * @return
     */
    public int addSalary(Salary salary);

    /**
     * 更新员工薪资信息
     *
     * @param salary
     * @return
     */
    public int updateSalary(Salary salary);

    /**
     * 根据id删除
     * @param id
     * @return
     */
    public int deleteSalary(Integer id);
    /**
     * 分页查询
     * @param page
     * @param size
     * @return
     */
    public PageInfo<Salary> findPage(int page, int size);
    /**
     * 打印
     * @return
     */
    public ExcelData getOutputExcelProjectData();
}
